package org.bookie.model.services;

import java.util.List;

import org.bookie.model.Category;
import org.bookie.model.services.impl.GenericDAO;

/**
 * DAO for {@link Category} instances
 * 
 * @author zubairov
 *
 */
public interface CategoryDAO extends GenericDAO<Category, Long>{
	
	
	/**
	 * Returns categories with given IDs
	 * @param ids
	 * @return List<Category> with given IDs
	 */
	public List<Category> getCategories(List<Long> ids);
	
	/**
	 * Returns a {@link Category} with given name
	 * @param name name to find the category
	 * @return instance of Category with given name
	 */
	public Category findByName(String name);

}
